import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * 用户信息
 */
@Entity('user_data')
export class UserDataEntity extends BaseEntity {

  @Column({ comment: '头像', nullable: true })
  avatarUrl: string;

  @Column({ comment: '昵称', nullable: true })
  nickName: string;

  @Column({ comment: '金币', nullable: true, default: 0 })
  gold: number;

  @Column({ comment: '种族id', nullable: true })
  raceId: number;

  @Column({ comment: '门派id', nullable: true })
  sectId: number;

  @Column({ comment: '标签id', nullable: true })
  tagIds: string;
}
